
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-video"></use>
                    </svg>
                    <div class="name">video</div>
                    <div class="fontclass">#icon-video</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mimayaochi"></use>
                    </svg>
                    <div class="name">密码，钥匙</div>
                    <div class="fontclass">#icon-mimayaochi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuanzexiangmu"></use>
                    </svg>
                    <div class="name">选择项目</div>
                    <div class="fontclass">#icon-xuanzexiangmu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yinlemusic170"></use>
                    </svg>
                    <div class="name">音乐_music170</div>
                    <div class="fontclass">#icon-yinlemusic170</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-LC_icon_list_line"></use>
                    </svg>
                    <div class="name">LC_icon_list_line</div>
                    <div class="fontclass">#icon-LC_icon_list_line</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-database"></use>
                    </svg>
                    <div class="name">LC_icon_list_line_13</div>
                    <div class="fontclass">#icon-database</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-squares"></use>
                    </svg>
                    <div class="name">LC_icon_list_line_21</div>
                    <div class="fontclass">#icon-squares</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chartline"></use>
                    </svg>
                    <div class="name">chart-line</div>
                    <div class="fontclass">#icon-chartline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yuzhuceqiye"></use>
                    </svg>
                    <div class="name">预注册企业</div>
                    <div class="fontclass">#icon-yuzhuceqiye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-text"></use>
                    </svg>
                    <div class="name">text</div>
                    <div class="fontclass">#icon-text</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bijiben-copy"></use>
                    </svg>
                    <div class="name">笔记本</div>
                    <div class="fontclass">#icon-bijiben-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-newlinemtui"></use>
                    </svg>
                    <div class="name">new_line_MT_UI</div>
                    <div class="fontclass">#icon-newlinemtui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mima"></use>
                    </svg>
                    <div class="name">密码</div>
                    <div class="fontclass">#icon-mima</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-denglu-copy"></use>
                    </svg>
                    <div class="name">登录</div>
                    <div class="fontclass">#icon-denglu-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-test"></use>
                    </svg>
                    <div class="name">test</div>
                    <div class="fontclass">#icon-test</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuce"></use>
                    </svg>
                    <div class="name">注册</div>
                    <div class="fontclass">#icon-zhuce</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pause"></use>
                    </svg>
                    <div class="name">pause</div>
                    <div class="fontclass">#icon-pause</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-plus-radiofill"></use>
                    </svg>
                    <div class="name">单选填空</div>
                    <div class="fontclass">#icon-plus-radiofill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ceshi"></use>
                    </svg>
                    <div class="name">测试</div>
                    <div class="fontclass">#icon-ceshi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ptsxingnengceshi"></use>
                    </svg>
                    <div class="name">pts性能测试</div>
                    <div class="fontclass">#icon-ptsxingnengceshi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuhedanxuankuang"></use>
                    </svg>
                    <div class="name">组合单选框</div>
                    <div class="fontclass">#icon-zuhedanxuankuang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-test1"></use>
                    </svg>
                    <div class="name">test</div>
                    <div class="fontclass">#icon-test1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-add"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#icon-add</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line"></use>
                    </svg>
                    <div class="name">emoji_line (17)</div>
                    <div class="fontclass">#icon-emoji_line</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line1"></use>
                    </svg>
                    <div class="name">emoji_line (20)</div>
                    <div class="fontclass">#icon-emoji_line1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line2"></use>
                    </svg>
                    <div class="name">emoji_line (30)</div>
                    <div class="fontclass">#icon-emoji_line2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line3"></use>
                    </svg>
                    <div class="name">emoji_line (42)</div>
                    <div class="fontclass">#icon-emoji_line3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line4"></use>
                    </svg>
                    <div class="name">emoji_line (46)</div>
                    <div class="fontclass">#icon-emoji_line4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line5"></use>
                    </svg>
                    <div class="name">emoji_line (47)</div>
                    <div class="fontclass">#icon-emoji_line5</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line6"></use>
                    </svg>
                    <div class="name">emoji_line (56)</div>
                    <div class="fontclass">#icon-emoji_line6</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-emoji_line7"></use>
                    </svg>
                    <div class="name">emoji_line (60)</div>
                    <div class="fontclass">#icon-emoji_line7</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-laba"></use>
                    </svg>
                    <div class="name">喇叭</div>
                    <div class="fontclass">#icon-laba</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-banckward"></use>
                    </svg>
                    <div class="name">banckward</div>
                    <div class="fontclass">#icon-banckward</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-caretright"></use>
                    </svg>
                    <div class="name">caretright</div>
                    <div class="fontclass">#icon-caretright</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-down-square"></use>
                    </svg>
                    <div class="name">down-square</div>
                    <div class="fontclass">#icon-down-square</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-down-square-o"></use>
                    </svg>
                    <div class="name">down-square-o</div>
                    <div class="fontclass">#icon-down-square-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fast-backward"></use>
                    </svg>
                    <div class="name">fast-backward</div>
                    <div class="fontclass">#icon-fast-backward</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-forward"></use>
                    </svg>
                    <div class="name">forward</div>
                    <div class="fontclass">#icon-forward</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fast-forward"></use>
                    </svg>
                    <div class="name">fast-forward</div>
                    <div class="fontclass">#icon-fast-forward</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-left-square"></use>
                    </svg>
                    <div class="name">left-square</div>
                    <div class="fontclass">#icon-left-square</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-left-square-o"></use>
                    </svg>
                    <div class="name">left-square-o</div>
                    <div class="fontclass">#icon-left-square-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-right-square"></use>
                    </svg>
                    <div class="name">right-square</div>
                    <div class="fontclass">#icon-right-square</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-right-square-o"></use>
                    </svg>
                    <div class="name">right-square-o</div>
                    <div class="fontclass">#icon-right-square-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-step-backward"></use>
                    </svg>
                    <div class="name">step-backward</div>
                    <div class="fontclass">#icon-step-backward</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-step-forward"></use>
                    </svg>
                    <div class="name">step-forward</div>
                    <div class="fontclass">#icon-step-forward</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-play-circle"></use>
                    </svg>
                    <div class="name">play-circle</div>
                    <div class="fontclass">#icon-play-circle</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
